home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / nShell Prog / Programmer's Guide / 07 Callbacks - Stdout < prev    next >
Encoding:
Text File  |  1994-09-04  |  1.1 KB  |  76 lines  |  [TEXT/ttxt]

  1. 07 Callbacks - Stdout
  2. =====================
  3.  
  4. These routines print to Standard Output (stdout) and are compatible with nShell I/O redirection.
  5.  
  6. NSH_printf
  7. ----------
  8.  
  9. void NSH_printf(const char *fmt, ...);
  10.  
  11. PARAMETERS
  12.  
  13. PARAMETERS
  14.  
  15.     Quite a few, please refer to a  C language reference.
  16.  
  17. RETURNS
  18.  
  19.     none
  20.  
  21. PROCESS
  22.  
  23. All parameters are converted to a character string.  The resulting string is sent to Standard Output.
  24.  
  25. NSH_putchar
  26. -----------
  27.  
  28. void NSH_putchar(char c);
  29.  
  30. PARAMETERS
  31.  
  32.     char    c    character to be output
  33.  
  34. RETURNS
  35.  
  36.     none
  37.  
  38. PROCESS
  39.  
  40. The passed character is printed on Standard Output.  Note that a lot of overhead is involved in sending a single character back through to a shell.  Whenever possible, use NSH_puts or NSH_putStr to output larger blocks of text.
  41.  
  42. NSH_puts
  43. --------
  44.  
  45. void NSH_puts(char *s);
  46.  
  47. PARAMETERS
  48.  
  49.     char    *s    address of a string to be output
  50.  
  51. RETURNS
  52.  
  53.     none
  54.  
  55. PROCESS
  56.  
  57. The passed string is printed on Standard Output. 
  58.  
  59. NSH_putStr
  60. ----------
  61.  
  62. void NSH_putStr(Str255 s);
  63.  
  64. PARAMETERS
  65.  
  66.     Str255        s    address of a string to be output
  67.  
  68. RETURNS
  69.  
  70.     none
  71.  
  72. PROCESS
  73.  
  74. The passed string is printed on Standard Output. 
  75.  
  76.